/*
 * Copyright (C) 2017 MediaTek Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
 */

/* This file is generated by GenLP_setting.pl v1.5.7 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>

const unsigned int AP_CG_Golden_Setting_tcl_gs_dpidle_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x0C53C8A0,	0x00000002,	0x00000002,/* MP0_DCM_CFG8 */
	0x10000000,	0x00000F00,	0x00000000,/* CLK_MODE */
	0x10000040,	0x80808000,	0x80808000,/* CLK_CFG_0 */
	0x10000050,	0x80808080,	0x80808080,/* CLK_CFG_1 */
	0x10000060,	0x80808080,	0x80808080,/* CLK_CFG_2 */
	0x10000070,	0x80808080,	0x80808080,/* CLK_CFG_3 */
	0x10000080,	0x80008080,	0x80008000,/* CLK_CFG_4 */
	0x10000090,	0x80800080,	0x00800080,/* CLK_CFG_5 */
	0x100000A0,	0x00008080,	0x00008080,/* CLK_CFG_6 */
	0x100000B0,	0x80800080,	0x80800000,/* CLK_CFG_7 */
	0x10000104,	0x00011078,	0x00001000,/* CLK_MISC_CFG_0 */
	0x10000320,	0x0000003C,	0x0000003C,/* CLK_AUDDIV_0 */
	0x10001074,	0x00000004,	0x00000000,/* PERI_BUS_DCM_CTRL */
	0x10001080,	0x98FFFF7F,	0x98FFFF60,/* MODULE_SW_CG_0_SET */
	0x10001084,	0x98FFFF7F,	0x00100200,/* MODULE_SW_CG_0_CLR */
	0x10001088,	0x9F9C7F96,	0x1B9C0B96,/* MODULE_SW_CG_1_SET */
	0x1000108C,	0x9F9C7F96,	0x03180880,/* MODULE_SW_CG_1_CLR */
	0x100010A4,	0x3FFC87DD,	0x3FFC87DD,/* MODULE_SW_CG_2_SET */
	0x100010A8,	0x3FFC87DD,	0x30008000,/* MODULE_SW_CG_2_CLR */
	0x100010C0,	0x003F87DB,	0x000187DB,/* MODULE_SW_CG_3_SET */
	0x100010C4,	0x003F87DB,	0x00000000,/* MODULE_SW_CG_3_CLR */
	0x10001200,	0x80000000,	0x00000000,/* INFRA_TOPAXI_SI0_CTL */
	0x1000320C,	0x80000000,	0x00000000,/* PERIAXI_SI0_CTL */
	0x1000CE08,	0x000001FF,	0x00000000,/* FHCTL_CLK_CON */
	0x1000D0F0,	0x00000001,	0x00000001,/* TIMER_CTRL */
	0x102380F0,	0x00010000,	0x00010000,/* GCE_CTL_INT0 */
	0x10443000,	0x0007E3FE,	0x00004000,/* SSPM_CK_EN */
	0x10443004,	0x00000100,	0x00000100,/* SSPM_MCLK_DIV */
	0x10443010,	0x00000001,	0x00000000,/* SSPM_UART_CTRL */
	0x1100BF00,	0x800F0000,	0x00000000,/* PTPCORESEL */
	0x11220000,	0x0F080304,	0x0F080304,/* AUDIO_TOP_CON0 */
	0x11220004,	0x000000F0,	0x000000F0,/* AUDIO_TOP_CON1 */
	0x11C10080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C11080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C12080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C13080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C14080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C15080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x13000004,	0x00000001,	0x00000001,/* MFG_CG_SET */
	0x13000008,	0x00000001,	0x00000000,/* MFG_CG_CLR */
	0x14000100,	0xFFFFFFFF,	0xFFFFFFFF,/* MMSYS_CG_CON0 */
	0x15020000,	0x0000003D,	0x0000003D,/* IMG_CG_CON */
	0x16000000,	0x00000001,	0x00000000,/* VDEC_CKEN_SET */
	0x16000004,	0x00000001,	0x00000001,/* VDEC_CKEN_CLR */
	0x16000008,	0x00000001,	0x00000000,/* VDEC_LARB1_CKEN_SET */
	0x1600000C,	0x00000001,	0x00000001,/* VDEC_LARB1_CKEN_CLR */
	0x17000000,	0x00000111,	0x00000000,/* VENCSYS_CG_CON */
	0x17000004,	0x00000111,	0x00000000,/* VENCSYS_CG_SET */
	0x17000008,	0x00000111,	0x00000111,/* VENCSYS_CG_CLR */
	0x1A000000,	0x00001FC3,	0x00001FC3,/* CAMSYS_CG_CON */
};

const unsigned int *AP_CG_Golden_Setting_tcl_gs_dpidle =
		AP_CG_Golden_Setting_tcl_gs_dpidle_data;

unsigned int AP_CG_Golden_Setting_tcl_gs_dpidle_len = 150;

const unsigned int AP_CG_Golden_Setting_tcl_gs_suspend_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x0C53C8A0,	0x00000002,	0x00000002,/* MP0_DCM_CFG8 */
	0x10000000,	0x00000F00,	0x00000000,/* CLK_MODE */
	0x10000040,	0x80808000,	0x80808000,/* CLK_CFG_0 */
	0x10000050,	0x80808080,	0x80808080,/* CLK_CFG_1 */
	0x10000060,	0x80808080,	0x80808080,/* CLK_CFG_2 */
	0x10000070,	0x80808080,	0x80808080,/* CLK_CFG_3 */
	0x10000080,	0x80008080,	0x80008080,/* CLK_CFG_4 */
	0x10000090,	0x80800080,	0x80800080,/* CLK_CFG_5 */
	0x100000A0,	0x00008080,	0x00008080,/* CLK_CFG_6 */
	0x100000B0,	0x80800080,	0x80800000,/* CLK_CFG_7 */
	0x10000104,	0x00001000,	0x00000000,/* CLK_MISC_CFG_0 */
	0x10000200,	0x000703EF,	0x000703EF,/* CLK_SCP_CFG_0 */
	0x10000320,	0x0000003C,	0x0000003C,/* CLK_AUDDIV_0 */
	0x10001074,	0x00000004,	0x00000000,/* PERI_BUS_DCM_CTRL */
	0x10001080,	0x98FFFF7F,	0x98FFFF60,/* MODULE_SW_CG_0_SET */
	0x10001084,	0x98FFFF7F,	0x00100200,/* MODULE_SW_CG_0_CLR */
	0x10001088,	0x9F9C7F96,	0x1B9C0B96,/* MODULE_SW_CG_1_SET */
	0x1000108C,	0x9F9C7F96,	0x03180880,/* MODULE_SW_CG_1_CLR */
	0x100010A4,	0x3FFC87DD,	0x3FFC87DD,/* MODULE_SW_CG_2_SET */
	0x100010A8,	0x3FFC87DD,	0x30008000,/* MODULE_SW_CG_2_CLR */
	0x100010C0,	0x003F87DB,	0x000187DB,/* MODULE_SW_CG_3_SET */
	0x100010C4,	0x003F87DB,	0x00000000,/* MODULE_SW_CG_3_CLR */
	0x10001200,	0x80000000,	0x00000000,/* INFRA_TOPAXI_SI0_CTL */
	0x1000320C,	0x80000000,	0x00000000,/* PERIAXI_SI0_CTL */
	0x1000CE08,	0x000001FF,	0x00000000,/* FHCTL_CLK_CON */
	0x1000D0F0,	0x00000001,	0x00000001,/* TIMER_CTRL */
	0x10017008,	0x00000000,	0x00000000,/* World_CLK_CNTCV_L */
	0x1001700C,	0x00000000,	0x00000000,/* World_CLK_CNTCV_H */
	0x102380F0,	0x00010000,	0x00010000,/* GCE_CTL_INT0 */
	0x10443000,	0x0007E3FE,	0x00004000,/* SSPM_CK_EN */
	0x10443004,	0x00000100,	0x00000100,/* SSPM_MCLK_DIV */
	0x10443010,	0x00000001,	0x00000000,/* SSPM_UART_CTRL */
	0x1100BF00,	0x800F0000,	0x00000000,/* PTPCORESEL */
	0x11220000,	0x0F080304,	0x0F080304,/* AUDIO_TOP_CON0 */
	0x11220004,	0x000000F0,	0x000000F0,/* AUDIO_TOP_CON1 */
	0x11C10080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C11080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C12080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C13080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C14080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C15080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x13000004,	0x00000001,	0x00000001,/* MFG_CG_SET */
	0x13000008,	0x00000001,	0x00000000,/* MFG_CG_CLR */
	0x14000100,	0xFFFFFFFF,	0xFFFFFFFF,/* MMSYS_CG_CON0 */
	0x15020000,	0x0000003D,	0x0000003D,/* IMG_CG_CON */
	0x16000000,	0x00000001,	0x00000000,/* VDEC_CKEN_SET */
	0x16000004,	0x00000001,	0x00000001,/* VDEC_CKEN_CLR */
	0x16000008,	0x00000001,	0x00000000,/* VDEC_LARB1_CKEN_SET */
	0x1600000C,	0x00000001,	0x00000001,/* VDEC_LARB1_CKEN_CLR */
	0x17000000,	0x00000111,	0x00000000,/* VENCSYS_CG_CON */
	0x17000004,	0x00000111,	0x00000000,/* VENCSYS_CG_SET */
	0x17000008,	0x00000111,	0x00000111,/* VENCSYS_CG_CLR */
	0x1A000000,	0x00001FC3,	0x00001FC3,	/* CAMSYS_CG_CON */
};

const unsigned int *AP_CG_Golden_Setting_tcl_gs_suspend =
		AP_CG_Golden_Setting_tcl_gs_suspend_data;

unsigned int AP_CG_Golden_Setting_tcl_gs_suspend_len = 159;

const unsigned int AP_CG_Golden_Setting_tcl_gs_sodi_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x1000D0F0,	0x00000001,	0x00000001,/* TIMER_CTRL */
	0x11C10080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C11080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C12080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C13080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C14080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x11C15080,	0x00000002,	0x00000000,/* MIPI_RX_WRAPPER80_CSI0A */
	0x14000100,	0xFFFFFFFF,	0x00000000,/* MMSYS_CG_CON0 */
	0x15020000,	0x0000003D,	0x0000003D,/* IMG_CG_CON */
	0x16000000,	0x00000001,	0x00000001,/* VDEC_CKEN_SET */
	0x16000004,	0x00000001,	0x00000000,/* VDEC_CKEN_CLR */
	0x16000008,	0x00000001,	0x00000001,/* VDEC_LARB1_CKEN_SET */
	0x1600000C,	0x00000001,	0x00000000,/* VDEC_LARB1_CKEN_CLR */
	0x17000000,	0x00000111,	0x00000000,/* VENCSYS_CG_CON */
	0x17000004,	0x00000111,	0x00000000,/* VENCSYS_CG_SET */
	0x17000008,	0x00000111,	0x00000111,/* VENCSYS_CG_CLR */
	0x1A000000,	0x00001FC3,	0x00001FC3,/* CAMSYS_CG_CON */
};

const unsigned int *AP_CG_Golden_Setting_tcl_gs_sodi =
		AP_CG_Golden_Setting_tcl_gs_sodi_data;

unsigned int AP_CG_Golden_Setting_tcl_gs_sodi_len = 51;
